package com.googlecode.afdbaccess.web.portal.webcontent.edit_row.edit_row_form_data;

import javax.ws.rs.FormParam;

import com.googlecode.afdbaccess.web.common.exception.GuiLayerExtJsFormValuesException;
import com.googlecode.afdbaccess.web.common.exception.GuiLayerJsonFormattedException;

public class FormValues {
    @FormParam("stringAttribute")
    public String stringAttribute;
    
    void checkParams() throws GuiLayerJsonFormattedException {
        if(stringAttribute.equals("serverfail")) {
            throw new GuiLayerExtJsFormValuesException("Invalid input", null, "stringAttribute", "\"serverfail\" is an invalid value");
        }
    }
 }